package com.game.sprite.components;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

/**
* @author oven:
* @version 创建时间：2012-12-1 上午8:48:08
* 
*/
public class M_BasicListItem extends BasicListItem{
	
	protected Bitmap head ;
	protected String name;

	public M_BasicListItem(Bitmap head,String name){
		super(100, head.getHeight());
		this.head=head;
		this.name=name;
	}
	
	@Override
	public void paint(Canvas canvas,Paint paint) {
		paint.setColor(Color.BLACK);
		canvas.drawBitmap(head, 0, 0, paint);
		canvas.drawText(name, head.getWidth()+10, height/2, paint);
	}

}

